package com.example.lj.uav.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class PointAction implements Parcelable {
    private int id;
    private String name;
    private String param;

    public PointAction() {
    }

    public PointAction(String name, String param) {
        this.name = name;
        this.param = param;
    }

    protected PointAction(Parcel in) {
        name = in.readString();
        param = in.readString();
        id = in.readInt();
    }

    public static final Creator<PointAction> CREATOR = new Creator<PointAction>() {
        @Override
        public PointAction createFromParcel(Parcel in) {
            return new PointAction(in);
        }

        @Override
        public PointAction[] newArray(int size) {
            return new PointAction[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(name);
        parcel.writeString(param);
        parcel.writeInt(id);
    }
}
